import { Injectable } from '@angular/core';

import ChartConfig from '../assets/ChartConfig.json';
import { ChartType } from './routes/ChartType';

@Injectable({
  providedIn: 'root'
})
export class ChartConfigurationService {
  constructor() {}

  getChartType(): ChartType {
    return ChartConfig.ChartType;
  }

  getChartRules(): number {
    return ChartConfig.Rules;
  }

  getChartSampleTimeInterval(): number {
    return ChartConfig.Interval;
  }

  getChartPoints(): number {
    return ChartConfig.ChartPoints;
  }

  getChartViewPrecision(): number {
    return ChartConfig.ChartViewPrecision;
  }

  getChartDataPrecision(): number {
    return ChartConfig.DataPrecision;
  }

  getNumberOfMovingRangeSteps(): number {
    return ChartConfig.NumberOfMovingRangeSteps;
  }
}
